package com.chen.dao;

import com.chen.pojo.Building;
import com.chen.pojo.Teacher;

import java.util.List;

public interface BuildingDao {
    //查询楼的集合
    List<Building> getBuildingList(Building building);

    //根据id查询宿舍楼
    Building getBuildingById(Integer id);

    //修改宿舍楼信息
    void   updateBuilding(Building building);

    //根据宿舍楼id查询老师
    List<Teacher> getTeacherByBuilding(int id);

    //跟据id查询没有权限的老师
    List<Teacher> getNotTeacherByBuilding(int id);
    //根据老师id查他管理的所有宿舍楼
    List<Building> getBuildingByTeacherId(int teacherId);
}
